import { ref } from 'vue';
import { basicUrl } from '../api/index';

const url = ref(basicUrl)
const goBack = function(){
  const index = url.value.lastIndexOf('/')
  url.value = url.value.substring(0, index)
}
const goChild = function(child){
  url.value = url.value + '/' + child
}

export { url,goBack,goChild }